package org.rvk.vms.dal.model.search;

import java.io.Serializable;

/**
 * Generic search input class
 *
 * @author Ashish Kumar Sinha <aksinha.mail@gmail.com>
 */
public class SearchInput implements Serializable {

    private int pageSize = 50;
    private int page = 0;
    private final String key;

    public SearchInput(String key, int page, int pageSize) {
        this.key = key;
        this.page = page;
        this.pageSize = pageSize;
    }

    public SearchInput(String key){
        this(key, 0, 50);
    }

    public int getPageSize() {
        return pageSize;
    }

    public int getPage() {
        return page;
    }

    public String getKey() {
        return key;
    }
}
